package com.xpd.blog.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author xpd
 * @since 2024-09-27
 */
@Getter
@Setter
  @TableName("chat")
public class Chat implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

    @TableField("usid")
    private Integer usid;

    @TableField("uid")
    private Integer uid;

    @TableField("content")
    private String content;

    @TableField("time")
    private LocalDateTime time;

    @TableField("status")
    private Integer status;
    @TableField(exist = false)
    private Userinfo userinfo;
}
